package com.spring.basic;

import com.study.entity.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author HBZ
 * @Date 2020/7/22 23:25
 * @Description
 */
@Configuration
public class MyConfig {

    @Bean("person")
    public Person getPerson(){
        return new Person();
    }
}
